
from config import *

class Avion:

	def __init__(self, baseWeight, enginePow):
		self.location=[0,0,0]
		self.elevation=0
		self.turnAng=0
		self.fuel=0
		self.bullets=0
		self.baseWeight = baseWeight
		self.speed=0
		self.currentPow=0
		self.maxPower=enginePow
		
	def accelerate(self, deltaPow):
		npow = self.currentPow + deltaPow
		if npow>=0 and npow<=maxPower:
			self.currentPow = npow
			
	
